<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="panel panel-default panel-intro">
        <div class="panel-heading">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#basic" data-toggle="tab">基础信息</a></li>
                <li><a href="#sku" data-toggle="tab">服务类型</a></li>
                <li><a href="#educationalbackground" data-toggle="tab">教育背景</a></li>
                <li><a href="#certification" data-toggle="tab">资质认证</a></li>
            </ul>
        </div>
        <div class="panel-body">
            <div id="myTabContent" class="tab-content">
                <div class="tab-pane fade active in" id="basic">

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2"><b class="text-danger">*</b>{:__('Name')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2"><b class="text-danger">*</b>{:__('身份证')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-identity" data-rule="required" class="form-control" name="row[identity]" type="text" value="{$row.identity}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2"><b class="text-danger">*</b>{:__('所在位置')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-location" data-rule="required" class="form-control" name="row[location]" type="text" value="{$row.location}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2"><b class="text-danger">*</b>{:__('个人简介')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-details" data-rule="required" class="form-control" name="row[details]" >{$row.details}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2"><b class="text-danger">*</b>{:__('Image')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-image"></span>
                            </div>
                            <ul class="row list-inline plupload-preview" id="p-image"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2"><b class="text-danger">*</b>{:__('Images')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-images" class="form-control" size="50" name="row[images]" type="text" value="{$row.images}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-images"></span>
                            </div>
                            <ul class="row list-inline plupload-preview" id="p-images"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            {:build_radios('row[status]', ['1'=>__('Normal'), '0'=>__('Hidden')],$row['status'])}
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('收藏数')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-likes" data-rule="required" class="form-control" name="row[likes]" type="number" value="{$row.likes}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('咨询人数')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-sales" data-rule="required" class="form-control" name="row[sales]" type="number" value="{$row.sales}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('评价数')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-comments" data-rule="required" class="form-control" name="row[comments]" type="number" value="{$row.comments}">
                        </div>
                    </div>





                </div>
                <!--服务类型-->
                <div class="tab-pane fade" id="sku">
                    <div class="goods-spec-many form-grou">
                        {include file="/jeek/shop/skugoods/sku" /}
                    </div>
                </div>
                <!--教育背景-->
                <div class="tab-pane fade" id="educationalbackground">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">最高学历:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-study" data-rule="required" class="form-control" name="row[study]" type="text" value="{$row.study}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">毕业院校:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-school" data-rule="required" class="form-control" name="row[school]" type="text" value="{$row.school}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">专业:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-major" data-rule="required" class="form-control" name="row[major]" type="text" value="{$row.major}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">入学时间:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input disabled id="c-enroltime"  class="form-control datetimepicker" data-date-format="YYYY-MM-DD" type="text" value="{:$row.enroltime?datetime($row.enroltime):''}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">毕业时间:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input disabled id="c-graduatetime"  class="form-control datetimepicker" data-date-format="YYYY-MM-DD"  type="text" value="{:$row.graduatetime?datetime($row.enroltime):''}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">学历证明:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-diploma" data-rule="required" class="form-control" size="50" name="row[diploma]" type="text" value="{$row.diploma}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="plupload-diploma" class="btn btn-danger plupload" data-input-id="c-diploma" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-diploma"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-diploma"></span>
                            </div>
                            <ul class="row list-inline plupload-preview" id="p-diploma"></ul>
                        </div>
                    </div>
                </div>
                <!--资质认证-->
                <div class="tab-pane fade" id="certification">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">咨询师等级:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-jeek_level_id" data-rule="required" data-source="jeek/level/index" class="form-control selectpage"  data-multiple="false" name="row[jeek_level_id]" type="text" value="{$row.jeek_level_id}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2"><b class="text-danger">*</b>{:__('Category')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-category_id" data-rule="required" data-source="category/selectpage" data-params='{"custom[type]":"default"}' class="form-control selectpage"  data-multiple="true" name="row[category_id]" type="text" value="{$row.category_id}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">从业时间:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-workintime"  class="form-control" name="row[workintime]" type="text" value="{$row.workintime}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">擅长邻域:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-neighborhood"  class="form-control" name="row[neighborhood]" type="text" value="{$row.neighborhood}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">执业证书号:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-practicing_sn"  class="form-control" name="row[practicing_sn]" type="text" value="{$row.practicing_sn}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">执业证书图:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-practicing_img" data-rule="required" class="form-control" size="50" name="row[practicing_img]" type="text" value="{$row.practicing_img}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="plupload-practicing_img" class="btn btn-danger plupload" data-input-id="c-practicing_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-practicing_img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-practicing_img"></span>
                            </div>
                            <ul class="row list-inline plupload-preview" id="p-practicing_img"></ul>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">执业毕业证书:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-graduate_img" data-rule="required" class="form-control" size="50" name="row[graduate_img]" type="text" value="{$row.graduate_img}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="plupload-graduate_img" class="btn btn-danger plupload" data-input-id="c-graduate_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-graduate_img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-practicing_img"></span>
                            </div>
                            <ul class="row list-inline plupload-preview" id="p-graduate_img"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">荣誉证书:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-honor_imgs" data-rule="required" class="form-control" size="50" name="row[honor_imgs]" type="text" value="{$row.honor_imgs}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="plupload-honor_imgs" class="btn btn-danger plupload" data-input-id="c-honor_imgs" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-honor_imgs"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-honor_imgs"></span>
                            </div>
                            <ul class="row list-inline plupload-preview" id="p-honor_imgs"></ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            </div>
        </div>
    </div>
</form>
<style>
    [v-cloak] {
        display: none;
    }
</style>